package Homework_Test;

/**
 * @author caesar
 * @date 2025/7/11
 * @Description:
 * @apiNote
 */
public class Test4 {
    public static void main(String[] args) {
        Father2 f = new Father2();
        Son2 s = new Son2();
        System.out.println(f.getInfo());
//        System.out.println(s.getInfo());
//        s.setInfo("尚硅谷");
//        System.out.println(f.getInfo());
//        System.out.println(s.getInfo());
    }
}
class Father2{
    private String info = "atguigu";
    public void setInfo(String info){
        this.info = info;
    }
    public String getInfo(){
        return info;
    }
}
class Son2 extends Father{

}
